package com.jianguo.companion.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jianguo.common.core.domain.BaseEntity;
import com.jianguo.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;

/**
 * 陪诊员用户对象 pz_companions
 *
 * @author hxq
 * @date 2024-03-15
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PzCompanion extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 序号 */
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;
    /** 用户名 */
    @Excel(name = "用户名")
    private String username;
    /** 密码 */
    @Excel(name = "密码")
    private String password;
    /** 性别 */
    @Excel(name = "性别")
    private Long gender;
    /** 年龄 */
    @Excel(name = "年龄")
    private Long age;
    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;
    /** 图片 */
    @Excel(name = "图片")
    private String picImgeRul;
    /** 评论 */
    @Excel(name = "评论")
    private String comment;
    /** 优秀员工 */
    @Excel(name = "优秀员工")
    private Long superCompanion;
    /** 工作证 */
    @Excel(name = "工作证")
    private String cardImgeUrl;
    /** 家庭住址 */
    @Excel(name = "家庭住址")
    private String homeAddress;
    /** 启用禁用 */
    @Excel(name = "启用禁用")
    private Long enable;
    /** 状态 */
    @Excel(name = "状态")
    private Long status;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("username", getUsername())
            .append("password", getPassword())
            .append("gender", getGender())
            .append("age", getAge())
            .append("phone", getPhone())
            .append("picImgeRul", getPicImgeRul())
            .append("comment", getComment())
            .append("superCompanion", getSuperCompanion())
            .append("cardImgeUrl", getCardImgeUrl())
            .append("homeAddress", getHomeAddress())
            .append("enable", getEnable())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("deleted", getDeleted())
            .append("remark", getRemark())
        .toString();
    }
}
